<?php
$id = isset($_GET['id'])?(int)$_GET['id']:0;
$lanmu = isset($_GET['lanmu'])?(int)$_GET['lanmu']:0;
$c_id = isset($_GET['c_id'])?(int)$_GET['c_id']:0;

$where_sql=" where lc_id = {$id} ";
if($lanmu){
	$where_sql.=" and lanmu={$lanmu}";
	}
if($c_id){
	$where_sql.=" and c_id ={$c_id}";
	}
$sql = "select * from ".lc()."_products ".$where_sql;
$rs = mysql_query($sql);
if($rs){
	$rows = mysql_fetch_assoc($rs);
	$c_id=$rows['c_id'];
	$lanmu= get_products_lanmu_by_lc_id($id);
	}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $rows['lc_title'] ?>-<?php echo top_keys(7)?></title>
<meta name="description" content="<?php echo top_keys(9)?>">
<meta name="keywords" content="<?php echo top_keys(8)?>">
<link href="<?php echo TPL_URL?>style.css" rel="stylesheet" type="text/css">
<style>
.duotucontainer {
	width: 600px;
	margin: 0 auto;
}
.slidesjs-pagination {
	width: 100px;
	margin: 0 auto;
	list-style: none;
}
.slidesjs-pagination li {
	float: left;
	margin: 0 1px;
}
.slidesjs-pagination li a {
	display: block;
	width: 20px;
	height: 20px;
	text-align: center;
	float: left;
	overflow: hidden;
}
<!--多图展示2-->
.MagicZoomBigImageCont {
	border: 1px solid #91b817;
}
.MagicZoomMain {
	text-align: center !important;
	width: 92px;
}
.MagicZoomMain div {
	padding: 0px !important;
}
/* Header look and feel CSS class */
/* header is shown if "title" attribute is present in the <A> tag */
.MagicZoomHeader {
	font: 10px Tahoma, Verdana, Arial, sans-serif;
	color: #fff;
	background: #91b817;
	text-align: center !important;
}
/* CSS class for small looking glass square under mouse */
.MagicZoomPup {
	border: 1px solid #aaa;
	background: #ffffff;
}
/* CSS style for loading animation box */
.MagicZoomLoading {
	text-align: center;
	background: #ffffff;
	color: #444;
	border: 1px solid #ccc;
	opacity: 0.8;
	padding: 3px 3px 3px 3px !important;
	display: none; /* do not edit this line please */
}
/* CSS style for gif image in the loading animation box */
.MagicZoomLoading img {
	padding-top: 3px !important;
}
</style>
</head>
<body>
<div id="body">
  <?php require('head.php')?>
  <div id="middle">
    <div id="left">
      <div id="type">
        <div class="title">
          <h1>栏目分类</h1>
        </div>
        <ul>
          <?php echo get_products_type_m_ul($pid,$tid,$lanmu) ?>
        </ul>
      </div>
      <!-- type --></div>
    <!-- left -->
    <div id="right">
      <div class="title">
        <h1><?php echo get_lanmu_name($lanmu)?></h1>
        <h3><a href="index.php">首页</a> > <?php echo get_products_type_title($c_id)?></h3>
      </div>
      <div id="pro_con">
        <h1 class="h1"><?php echo $rows['lc_title']?></h1>
        <h2 class="h2">价格：<?php echo $rows['lc_price']?>元 &nbsp; &nbsp; <a
	href="add_gwc.php?lc_id={%$show.lc_id%}">加入购物车</a> 点击量：<?php echo $rows['lc_hits']?></h2>
        <div id="pic"><a href="<?php echo str_replace("../", "",  get_products_pic_by_proid($rows['lc_id'])) ?>"><img src="<?php echo str_replace("../", "",  get_products_pic_by_proid($rows['lc_id'])) ?>" width="300"></a></div>
        <?php echo $rows['lc_content']?><br>
        <strong>多图展示</strong> 
        <script src="<?php echo TPL_URL?>jquery.slides.min.js"></script> 
        <script type="text/javascript">
		$(function(){
			$("#duotushow").slidesjs({
				width: 600,
				height: 300,
				start: 1,
				navigation: false,
				play: {
				  auto: true
				}
			  });
			})
		</script>
        <div class="duotucontainer">
          <div id="duotushow" style="display:none"> <?php echo show_pic_more1(9,$id,30,210,210)?> </div>
        </div>
        <div><strong>多图展示2</strong></div>
        <script src="<?php echo TPL_URL?>MagicZoom.js"></script>
        <div class="duotucontainer"> <?php echo show_pic_more2(9,$id,30,210,210)?> </div>
        上一条： <?php echo get_products_title_last($id)?> <br>
        下一条： <?php echo get_products_title_next($id)?>
        <DIV class="bshare-custom"><A class="bshare-qzone" title="分享到QQ空间"></A><A
	class="bshare-sinaminiblog" title="分享到新浪微博"></A><A class="bshare-renren"
	title="分享到人人网"></A><A class="bshare-qqmb" title="分享到腾讯微博"></A><A
	class="bshare-neteasemb" title="分享到网易微博"></A><A
	class="bshare-more bshare-more-icon more-style-addthis" title="更多平台"></A><SPAN
	class="BSHARE_COUNT bshare-share-count">0</SPAN></DIV>
        <SCRIPT charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></SCRIPT> 
        <SCRIPT charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></SCRIPT> 
      </div>
      <!-- pic --></div>
    <!-- right -->
    <div class="clear"></div>
  </div>
  <?php require('bot.php') ?>
</div>
<!-- body --> 
<br>
</body>
</html>
